-- GENERATED SPELL FOR [Twilight Lord Everun] --


function spell0_14479(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(19816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14479', 3000, 1)
end

function spell1_14479(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(17439,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14479', 617, 1)
end

function Sorts_14479(pUnit, Event)
local choix_sorts_14479 = math.random(0, 1)
if choix_sorts_14479 == 0 then
pUnit:RegisterEvent('spell0_14479', 1, 1)
end
if choix_sorts_14479 == 1 then
pUnit:RegisterEvent('spell1_14479', 1, 1)
end
end

function mob14479_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14479', math.random(1500, 3000), 1)
end

function mob14479_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14479_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14479_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14479, 1, 'mob14479_Action')
RegisterUnitEvent(14479, 2, 'mob14479_Leave')
RegisterUnitEvent(14479, 3, 'mob14479_Kill')
RegisterUnitEvent(14479, 4, 'mob14479_Die')
